package com.xoa.dev.efficiency.model;

import com.xoa.model.workflow.FlowRun;
import com.xoa.model.workflow.FlowRunPrcs;

import java.util.Date;

public class FlowAbilityMonitor {

    private String ziliu;

    private String ziren;
    private String userName;
    private String deptName;
    private String liuChengName;
    private String buZhou;
    private String dangQianZhuBan;
    private String shuliang;


    String TQCount;
    String ASEndCount;
    String CSEndCount;
    String ASCount;
    String CSCount;


    int TQCounts;
    int ASEndCounts;
    int CSEndCounts;
    int ASCounts;
    int CSCounts;

    Integer workStatusInt;

    String flowF;
    String flowS;

    public String getFlowF() {
        return flowF;
    }

    public void setFlowF(String flowF) {
        this.flowF = flowF;
    }

    public String getFlowS() {
        return flowS;
    }

    public void setFlowS(String flowS) {
        this.flowS = flowS;
    }

    public Integer getWorkStatusInt() {
        return workStatusInt;
    }

    public void setWorkStatusInt(Integer workStatusInt) {
        this.workStatusInt = workStatusInt;
    }

    public int getTQCounts() {
        return TQCounts;
    }

    public void setTQCounts(int TQCounts) {
        this.TQCounts = TQCounts;
    }

    public int getASEndCounts() {
        return ASEndCounts;
    }

    public void setASEndCounts(int ASEndCounts) {
        this.ASEndCounts = ASEndCounts;
    }

    public int getCSEndCounts() {
        return CSEndCounts;
    }

    public void setCSEndCounts(int CSEndCounts) {
        this.CSEndCounts = CSEndCounts;
    }

    public int getASCounts() {
        return ASCounts;
    }

    public void setASCounts(int ASCounts) {
        this.ASCounts = ASCounts;
    }

    public int getCSCounts() {
        return CSCounts;
    }

    public void setCSCounts(int CSCounts) {
        this.CSCounts = CSCounts;
    }

    FlowRunPrcs flowRunPrcs=new FlowRunPrcs();

    FlowRun flowRun=new FlowRun();

    public FlowRun getFlowRun() {
        return flowRun;
    }

    public void setFlowRun(FlowRun flowRun) {
        this.flowRun = flowRun;
    }

    public FlowRunPrcs getFlowRunPrcs() {
        return flowRunPrcs;
    }

    public void setFlowRunPrcs(FlowRunPrcs flowRunPrcs) {
        this.flowRunPrcs = flowRunPrcs;
    }

    public String getTQCount() {
        return TQCount;
    }

    public void setTQCount(String TQCount) {
        this.TQCount = TQCount;
    }

    public String getASEndCount() {
        return ASEndCount;
    }

    public void setASEndCount(String ASEndCount) {
        this.ASEndCount = ASEndCount;
    }

    public String getCSEndCount() {
        return CSEndCount;
    }

    public void setCSEndCount(String CSEndCount) {
        this.CSEndCount = CSEndCount;
    }

    public String getASCount() {
        return ASCount;
    }

    public void setASCount(String ASCount) {
        this.ASCount = ASCount;
    }

    public String getCSCount() {
        return CSCount;
    }

    public void setCSCount(String CSCount) {
        this.CSCount = CSCount;
    }

    public String getShuliang() {
        return shuliang;
    }

    public void setShuliang(String shuliang) {
        this.shuliang = shuliang;
    }

    public String getLiuChengName() {
        return liuChengName;
    }

    public void setLiuChengName(String liuChengName) {
        this.liuChengName = liuChengName;
    }

    public String getBuZhou() {
        return buZhou;
    }

    public void setBuZhou(String buZhou) {
        this.buZhou = buZhou;
    }

    public String getDangQianZhuBan() {
        return dangQianZhuBan;
    }

    public void setDangQianZhuBan(String dangQianZhuBan) {
        this.dangQianZhuBan = dangQianZhuBan;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    private String status;

    public String getZiliu() {
        return ziliu;
    }

    public void setZiliu(String ziliu) {
        this.ziliu = ziliu;
    }

    public String getZiren() {
        return ziren;
    }

    public void setZiren(String ziren) {
        this.ziren = ziren;
    }

    public String getQiantou() {
        return qiantou;
    }

    public void setQiantou(String qiantou) {
        this.qiantou = qiantou;
    }

    private String qiantou;

    public String getShixian() {
        return shixian;
    }

    public void setShixian(String shixian) {
        this.shixian = shixian;
    }

    private String shixian;//办理时限

    public String getShijian() {
        return shijian;
    }

    public void setShijian(String shijian) {
        this.shijian = shijian;
    }

    private String shijian;//剩余/超出时间

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.ID
     *
     * @mbggenerated
     */
    private Integer id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.run_id
     *
     * @mbggenerated
     */
    private Integer runId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.user_id
     *
     * @mbggenerated
     */
    private String userId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.work_type
     *
     * @mbggenerated
     */
    private Integer workType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.dept_id
     *
     * @mbggenerated
     */
    private String deptId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.user_type
     *
     * @mbggenerated
     */
    private Integer userType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.dept_type
     *
     * @mbggenerated
     */
    private Integer deptType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.work_deadline
     *
     * @mbggenerated
     */
    public String workDeadline;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.work_start
     *
     * @mbggenerated
     */
    public String workStart;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.work_end
     *
     * @mbggenerated
     */
    public String workEnd;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.work_title
     *
     * @mbggenerated
     */
    private String workTitle;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.run_id_f
     *
     * @mbggenerated
     */
    private Integer runIdF;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.run_title_f
     *
     * @mbggenerated
     */
    private String runTitleF;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.DELETED
     *
     * @mbggenerated
     */
    private Integer deleted;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column flow_ability_monitor.REMINDED
     *
     * @mbggenerated
     */
    private Integer reminded;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.ID
     *
     * @return the value of flow_ability_monitor.ID
     *
     * @mbggenerated
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.ID
     *
     * @param id the value for flow_ability_monitor.ID
     *
     * @mbggenerated
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.run_id
     *
     * @return the value of flow_ability_monitor.run_id
     *
     * @mbggenerated
     */
    public Integer getRunId() {
        return runId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.run_id
     *
     * @param runId the value for flow_ability_monitor.run_id
     *
     * @mbggenerated
     */
    public void setRunId(Integer runId) {
        this.runId = runId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.user_id
     *
     * @return the value of flow_ability_monitor.user_id
     *
     * @mbggenerated
     */
    public String getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.user_id
     *
     * @param userId the value for flow_ability_monitor.user_id
     *
     * @mbggenerated
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.work_type
     *
     * @return the value of flow_ability_monitor.work_type
     *
     * @mbggenerated
     */
    public Integer getWorkType() {
        return workType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.work_type
     *
     * @param workType the value for flow_ability_monitor.work_type
     *
     * @mbggenerated
     */
    public void setWorkType(Integer workType) {
        this.workType = workType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.dept_id
     *
     * @return the value of flow_ability_monitor.dept_id
     *
     * @mbggenerated
     */
    public String getDeptId() {
        return deptId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.dept_id
     *
     * @param deptId the value for flow_ability_monitor.dept_id
     *
     * @mbggenerated
     */
    public void setDeptId(String deptId) {
        this.deptId = deptId == null ? null : deptId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.user_type
     *
     * @return the value of flow_ability_monitor.user_type
     *
     * @mbggenerated
     */
    public Integer getUserType() {
        return userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.user_type
     *
     * @param userType the value for flow_ability_monitor.user_type
     *
     * @mbggenerated
     */
    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.dept_type
     *
     * @return the value of flow_ability_monitor.dept_type
     *
     * @mbggenerated
     */
    public Integer getDeptType() {
        return deptType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.dept_type
     *
     * @param deptType the value for flow_ability_monitor.dept_type
     *
     * @mbggenerated
     */
    public void setDeptType(Integer deptType) {
        this.deptType = deptType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.work_deadline
     *
     * @return the value of flow_ability_monitor.work_deadline
     *
     * @mbggenerated
     */
    public String getWorkDeadline() {
        return workDeadline;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.work_deadline
     *
     * @param workDeadline the value for flow_ability_monitor.work_deadline
     *
     * @mbggenerated
     */
    public void setWorkDeadline(String workDeadline) {
        this.workDeadline = getDate(workDeadline);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.work_start
     *
     * @return the value of flow_ability_monitor.work_start
     *
     * @mbggenerated
     */
    public String getWorkStart() {
        return workStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.work_start
     *
     * @param workStart the value for flow_ability_monitor.work_start
     *
     * @mbggenerated
     */
    public void setWorkStart(String workStart) {
        this.workStart = getDate(workStart);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.work_end
     *
     * @return the value of flow_ability_monitor.work_end
     *
     * @mbggenerated
     */
    public String getWorkEnd() {
        return workEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.work_end
     *
     * @param workEnd the value for flow_ability_monitor.work_end
     *
     * @mbggenerated
     */
    public void setWorkEnd(String workEnd) {
        this.workEnd = getDate(workEnd);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.work_title
     *
     * @return the value of flow_ability_monitor.work_title
     *
     * @mbggenerated
     */
    public String getWorkTitle() {
        return workTitle;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.work_title
     *
     * @param workTitle the value for flow_ability_monitor.work_title
     *
     * @mbggenerated
     */
    public void setWorkTitle(String workTitle) {
        this.workTitle = workTitle == null ? null : workTitle.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.run_id_f
     *
     * @return the value of flow_ability_monitor.run_id_f
     *
     * @mbggenerated
     */
    public Integer getRunIdF() {
        return runIdF;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.run_id_f
     *
     * @param runIdF the value for flow_ability_monitor.run_id_f
     *
     * @mbggenerated
     */
    public void setRunIdF(Integer runIdF) {
        this.runIdF = runIdF;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.run_title_f
     *
     * @return the value of flow_ability_monitor.run_title_f
     *
     * @mbggenerated
     */
    public String getRunTitleF() {
        return runTitleF;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.run_title_f
     *
     * @param runTitleF the value for flow_ability_monitor.run_title_f
     *
     * @mbggenerated
     */
    public void setRunTitleF(String runTitleF) {
        this.runTitleF = runTitleF == null ? null : runTitleF.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.DELETED
     *
     * @return the value of flow_ability_monitor.DELETED
     *
     * @mbggenerated
     */
    public Integer getDeleted() {
        return deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.DELETED
     *
     * @param deleted the value for flow_ability_monitor.DELETED
     *
     * @mbggenerated
     */
    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_ability_monitor.REMINDED
     *
     * @return the value of flow_ability_monitor.REMINDED
     *
     * @mbggenerated
     */
    public Integer getReminded() {
        return reminded;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_ability_monitor.REMINDED
     *
     * @param reminded the value for flow_ability_monitor.REMINDED
     *
     * @mbggenerated
     */
    public void setReminded(Integer reminded) {
        this.reminded = reminded;
    }

    public String getDate(String date){
        if(date!=null&&!date.equals("")){
            if(date.contains(".")){
                String[] dates=date.split("\\.");
                return dates[0];
            }
        }
        return date;
    }

    // 流程名称
    private String flowName;

    // 当前步骤名称
    private String prcsName;

    public String getFlowName() {
        return flowName;
    }

    public void setFlowName(String flowName) {
        this.flowName = flowName;
    }

    public String getPrcsName() {
        return prcsName;
    }

    public void setPrcsName(String prcsName) {
        this.prcsName = prcsName;
    }
}